package com.lagou.edu.service;

import com.lagou.edu.service.impl.UserServiceFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 *
 */
@FeignClient(value = "lagou-service-user", fallback = UserServiceFallBack.class, path = "/user")
public interface UserServiceFeignClient {

    @GetMapping("/login/{email}/{password}")
    String login(@PathVariable String email, @PathVariable String password);

    @GetMapping("/info/{token}")
    String info(@PathVariable String token);

    @GetMapping("/createToken/{email}/{password}")
    String createToken(@PathVariable String email, @PathVariable String password);
}
